import request from '@/utils/request'

// 查询支付宝充值订单列表
export function listRecharge(query) {
    return request({
        url: '/recharge/recharge/list',
        method: 'get',
        params: query
    })
}

// 查询支付宝充值订单详细
export function getRecharge(orderId) {
    return request({
        url: '/recharge/recharge/' + orderId,
        method: 'get'
    })
}

// 新增支付宝充值订单
export function addRecharge(data) {
    return request({
        url: '/recharge/recharge',
        method: 'post',
        data: data
    })
}

// 修改支付宝充值订单
export function updateRecharge(data) {
    return request({
        url: '/recharge/recharge',
        method: 'put',
        data: data
    })
}

// 删除支付宝充值订单
export function delRecharge(orderId) {
    return request({
        url: '/recharge/recharge/' + orderId,
        method: 'delete'
    })
}